projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d551c6
)
(current_column_1): Fix handling of scan_bytes for mb chars.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 19 Nov 2001 06:25:33 +0000
(06:25 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 19 Nov 2001 06:25:33 +0000
(06:25 +0000)
src/indent.c
patch
|
blob
|
history
diff --git
a/src/indent.c
b/src/indent.c
index 2e57e3775f5bcad098bcbbbc60ed4796d31fec85..c869c624c66daecc0a77fe583b05f95295580384 100644
(file)
--- a/
src/indent.c
+++ b/
src/indent.c
@@
-616,10
+616,12
@@
current_column_1 ()
unsigned char *ptr;
int bytes, width, wide_column;
- scan_byte--;
ptr = BYTE_POS_ADDR (scan_byte);
MULTIBYTE_BYTES_WIDTH (ptr, dp);
scan_byte += bytes;
+ /* Subtract one to compensate for the increment
+ that is going to happen below. */
+ scan_byte--;
col += width;
}
else if (ctl_arrow && (c < 040 || c == 0177))